package com.mxpio.erp.common.technology.entity;

import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.List;

/**
 * @Author : wpp
 * @Datetime : 2023/7/28 10:27
 * @Desc :
 * @Modor :  Modifytime: 标准工艺路线
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_TECHNOLOGY_STAND_ROUT")
@Schema(description="标准工艺路线")
public class StandTecRout extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**工序编码*/
    @Id
    @Column(name = "ROUT_CODE_", updatable = false)
    @Schema(description  = "工艺路线编码")
    private String routCode;
    /**工序名称*/
    @Column(name = "ROUT_NAME_" )
    @Schema(description  = "工艺路线名称")
    private String routName;
    /**工艺描述*/
    @Column(name = "ROUT_DESC_" )
    @Schema(description  = "工艺路线说明")
    private String routDesc;

    /**是否启用*/
    @Column(name = "STATUS_")
    @Schema(description = "是否启用")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    private String status;

    @Transient
    private List<StandTecRoutProc> lineList;

}
